package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

//用户统计
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user_count")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserCountModel {
    @TableId(type = IdType.AUTO)
    private Integer id;// 用户统计表ID
    private Integer userId;//用户ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
}
